<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.Event类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_event.html">Event</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="classawtk_1_1_event-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">awtk.Event类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 awtk.Event 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classawtk_1_1_event.png" usemap="#awtk.Event_map" alt=""/>
  <map id="awtk.Event_map" name="awtk.Event_map">
<area href="classawtk_1_1_key_event.html" alt="awtk.KeyEvent" shape="rect" coords="154,56,298,80"/>
<area href="classawtk_1_1_orientation_event.html" alt="awtk.OrientationEvent" shape="rect" coords="154,112,298,136"/>
<area href="classawtk_1_1_paint_event.html" alt="awtk.PaintEvent" shape="rect" coords="154,168,298,192"/>
<area href="classawtk_1_1_pointer_event.html" alt="awtk.PointerEvent" shape="rect" coords="154,224,298,248"/>
<area href="classawtk_1_1_progress_event.html" alt="awtk.ProgressEvent" shape="rect" coords="154,280,298,304"/>
<area href="classawtk_1_1_prop_change_event.html" alt="awtk.PropChangeEvent" shape="rect" coords="154,336,298,360"/>
<area href="classawtk_1_1_wheel_event.html" alt="awtk.WheelEvent" shape="rect" coords="154,392,298,416"/>
<area href="classawtk_1_1_window_event.html" alt="awtk.WindowEvent" shape="rect" coords="154,448,298,472"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:afb4681c277266bc75f412b10b39a5b6e"><td class="memItemLeft" align="right" valign="top"><a id="afb4681c277266bc75f412b10b39a5b6e"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Event</b> (long nativeObj)</td></tr>
<tr class="separator:afb4681c277266bc75f412b10b39a5b6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa593477745ffe0696e1aff9148d226cf"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_event.html#aa593477745ffe0696e1aff9148d226cf">destroy</a> ()</td></tr>
<tr class="separator:aa593477745ffe0696e1aff9148d226cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab74661b961700a2894b089d069e98ac8"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_event.html#ab74661b961700a2894b089d069e98ac8">getType</a> ()</td></tr>
<tr class="separator:ab74661b961700a2894b089d069e98ac8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7c1f8c929ac998a6ab51cdbf453074f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_event.html#af7c1f8c929ac998a6ab51cdbf453074f">getTime</a> ()</td></tr>
<tr class="separator:af7c1f8c929ac998a6ab51cdbf453074f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ff0f2b74701f5d4ac2b5070dd8d158e"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_event.html#a7ff0f2b74701f5d4ac2b5070dd8d158e">getTarget</a> ()</td></tr>
<tr class="separator:a7ff0f2b74701f5d4ac2b5070dd8d158e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:ac7570e7037fe779fb5ddf54835db90c8"><td class="memItemLeft" align="right" valign="top"><a id="ac7570e7037fe779fb5ddf54835db90c8"></a>
static <a class="el" href="classawtk_1_1_event.html">Event</a>&#160;</td><td class="memItemRight" valign="bottom"><b>cast</b> (long nativeObj)</td></tr>
<tr class="separator:ac7570e7037fe779fb5ddf54835db90c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff07c21e217052d1e967a166c660aa98"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_event.html">Event</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_event.html#aff07c21e217052d1e967a166c660aa98">cast</a> (<a class="el" href="classawtk_1_1_event.html">Event</a> event)</td></tr>
<tr class="separator:aff07c21e217052d1e967a166c660aa98"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae77dd9ea348eea1a6170640553628c1d"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_event.html">Event</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_event.html#ae77dd9ea348eea1a6170640553628c1d">create</a> (int type)</td></tr>
<tr class="separator:ae77dd9ea348eea1a6170640553628c1d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a9dcc2402e275c9c5a608bf8528a39f72"><td class="memItemLeft" align="right" valign="top"><a id="a9dcc2402e275c9c5a608bf8528a39f72"></a>
long&#160;</td><td class="memItemRight" valign="bottom"><b>nativeObj</b></td></tr>
<tr class="separator:a9dcc2402e275c9c5a608bf8528a39f72"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>事件基类。 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="aff07c21e217052d1e967a166c660aa98"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aff07c21e217052d1e967a166c660aa98">&#9670;&nbsp;</a></span>cast()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_event.html">Event</a> awtk.Event.cast </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classawtk_1_1_event.html">Event</a>&#160;</td>
          <td class="paramname"><em>event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>转换为event对象。</p>
<p>供脚本语言使用</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">event</td><td>event对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>event对象。 </dd></dl>

</div>
</div>
<a id="ae77dd9ea348eea1a6170640553628c1d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae77dd9ea348eea1a6170640553628c1d">&#9670;&nbsp;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_event.html">Event</a> awtk.Event.create </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>type</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建event对象。</p>
<p>主要给脚本语言使用。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>事件类型。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回事件对象。 </dd></dl>

</div>
</div>
<a id="aa593477745ffe0696e1aff9148d226cf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa593477745ffe0696e1aff9148d226cf">&#9670;&nbsp;</a></span>destroy()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Event.destroy </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>销毁事件对象。</p>
<p>主要给脚本语言使用。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a7ff0f2b74701f5d4ac2b5070dd8d158e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7ff0f2b74701f5d4ac2b5070dd8d158e">&#9670;&nbsp;</a></span>getTarget()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long awtk.Event.getTarget </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>事件发生的目标对象。 </p>

</div>
</div>
<a id="af7c1f8c929ac998a6ab51cdbf453074f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af7c1f8c929ac998a6ab51cdbf453074f">&#9670;&nbsp;</a></span>getTime()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.Event.getTime </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>事件发生的时间。 </p>

</div>
</div>
<a id="ab74661b961700a2894b089d069e98ac8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab74661b961700a2894b089d069e98ac8">&#9670;&nbsp;</a></span>getType()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.Event.getType </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>类型。 </p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/Event.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
